import requests

from frame.utils.log_util import logger


class BaseApi:

    def send_api(self, req):
        """
        对 requests 完成二次封装
        :return:
        """
        logger.info(f"请求数据为 {req}")
        r = requests.request(**req)
        logger.info(f"响应体为 {r.text}")
        return r




